b28cc0f755c738369d317e37efdf6309e560629e,src/main/java/nex/world/gen/structure/WorldGenBlazingPyramid.java,WorldGenBlazingPyramid,generate,#World#Random#BlockPos#,50
Before Change
StructureBoundingBox structureBB = new StructureBoundingBox(chunkPos.getXStart(), 0, chunkPos.getZStart(), chunkPos.getXEnd(), 256, chunkPos.getZEnd());
PlacementSettings settings = new PlacementSettings().setMirror(mirror).setRotation(rotation).setBoundingBox(structureBB).setRandom(rand);
BlockPos structureSize = Template.transformedBlockPos(settings.copy(), template.getSize());
BlockPos spawnPos = WorldGenUtil.getSuitableGroundPos(world, Template.getZeroPositionWithTransform(new BlockPos(chunkPos.getXStart() + 8 - structureSize.getX() / 2, 96, chunkPos.getZStart() + 8 - structureSize.getZ() / 2), mirror, rotation, structureSize.getX(), structureSize.getZ()), structureSize.getX(), structureSize.getZ(), 0.8F);
if(spawnPos != BlockPos.ORIGIN)
{
After Change
StructureBoundingBox structureBB = new StructureBoundingBox(chunkPos.getXStart(), 0, chunkPos.getZStart(), chunkPos.getXEnd(), 256, chunkPos.getZEnd());
PlacementSettings settings = new PlacementSettings().setMirror(mirror).setRotation(rotation).setBoundingBox(structureBB).setRandom(rand);
BlockPos structureSize = Template.transformedBlockPos(settings.copy(), template.getSize());
BlockPos newPos = new BlockPos(chunkPos.getXStart() + 8 - structureSize.getX() / 2, 96, chunkPos.getZStart() + 8 - structureSize.getZ() / 2);
BlockPos spawnPos = WorldGenUtil.getSuitableGroundPos(world, newPos, allowedBlocks, structureSize.getX(), structureSize.getZ(), 0.8F);
if(spawnPos != BlockPos.ORIGIN)
{